#!/bin/bash 

function s1_goto_dir(){
	cd "$1"
}

function s2_touch_empty_file_with_given_name(){
	filename="$1"
	touch "$filename"
}

function s3_make_directories(){
	mkdir projects
	mkdir projects/git
	mkdir projects/backup
}

function s4_create_6_files(){
	touch projects/linux1_centos projects/linux1_redhat projects/linux1_c_programming projects/linux2_centos projects/linux2_redhat projects/linux2_c_programming
}

function s5_make_directories_in_git(){
	mkdir projects/git/linux1
	mkdir projects/git/linux2
}

function s6_move_files_to_dir_1_or_2(){
	mv projects/linux1* projects/git/linux1
	mv projects/linux2* projects/git/linux2
}
function s7_create_package_and_compress(){
	tar -czvf git.tar.gz projects/git
	mv git.tar.gz backup/
}

function s8_delete_dir_git(){
	rm -rf projects/git
}

function s9_recover_from_git_tar_gz_backup(){
	tar -zcvf git.tar.gz
}

function s10_creat_package_and_compress(){
	tar -jcvf backup/git.tar.bz2 projects/git
}

function s11_find_and_sort_alphabetcially_creatd_file_and_dirs(){
	find ./projects | sort
}

function s12_get_next_15_minutes_boundary(){
	date -d @$(($(date +%s)/900*900+900)) "+%Y-%m-%d_%H:%M:%S"
}
